Repository navigation
Conversation
Collaborator
Author
|
Review notes from a static read of head Merge order and size
Needs a fix
Minor
Test gaps (minor)
|
… page The reference PDF holds some sheets as 300 dpi raster tiles, so precision against its vector layer drops when the print draws more strokes. The script reports that number next to the precision against the page rendered with its tiles.
The file stores the lighting of every 3D view (sunlight, shadow intensity, cast shadows) and its sun in a sun and shadow setting owned by the view. A sun that follows the camera has its azimuth and altitude in the camera's own frame, not above the horizon. A Shaded saved-camera view with zero ambient light now uses the solar-study light model with that sun, darkens faces turned from it by the saved shadow intensity and runs the cast-shadow pass when shadows are on. Ordinary shaded views keep opaque casters only, and views with only analytical strokes still print as vectors. A face with a category fill keeps its fill colour under the light. Gray error against the native export falls from 4.32 to 3.11 on the duct-section sheet of the mechanical sample; the other 25 compared sheets do not change. Also records the vector versus whole-page precision table and the cross-model score in docs/printing.md.
…ight A material keeps its appearance asset in its own block, after the string assetlibrary_base.fbx, as named properties; a colour is four doubles. The colour of the Generic, Metal, Plastic/Vinyl, Concrete, Wall Paint, Ceramic and Metallic Paint schemas is read and a Realistic view draws it in place of the stored shading colour. A colour with an image linked to it, a Hardwood, Stone or Masonry texture and glass keep the stored colour, since the image is not in the file. A Realistic saved-camera view with the sun that follows the camera is lit with its own weights, 0.75 + 0.7 x the cosine to the sun. The Sunlight slider does not scale them: the two sample views at 30 and 73 fit the same weights. Gray error against the native export falls from 6.72 to 5.06 on the title sheet and from 4.23 to 3.75 on the wall-section sheet of the structural sample, and the mean over the 26 compared sheets from 1.655 to 1.573; no other sheet changes. The ink score at 140 moves from 96.1 / 97.0 to 96.0 / 96.9, because the wood deck, drawn dark from a texture in Revit, is pale here. Documented in docs/printing.md.
Sections saved with the Consistent Colors style (m_surfaces 7) now fill each visible face flat with its material's shading colour, ink projected edges with the projection pen of their own category, and leave the joints between tessellated fillet facets unstroked. Solid structural surface patterns still win over the flat colour. The category pens and the joint rule apply to these views only.
Elevations are saved with the section view kind 2 and the Hidden Line style, which the section pattern gate left out, and the gate also required a cut plane that an elevation has not. Include both so the solid surface patterns of structural columns and framing print in elevations as they do in sections.
A basic wall type stores the fill its cut takes in a Coarse view in its compound structure (m_coarseScaleFillPatternElemId, m_coarseScaleFillColor). The reader keeps both for a single exact BasicWallType block and a Coarse section prints the wall cut with the solid pattern's color. At Coarse detail Revit draws a rebar along the view as one line of the Rebar pen and a rebar cut across as a filled four-sided diamond; the other detail levels keep the outlined body. Gray error of the structural wall-section sheet drops from 1.93 to 1.64 with no other sheet changed.
… patterns A Fine wireframe plan with surface patterns on (the S101 Level 1 plan) fills each steel beam top with the solid surface pattern of its material, like the Hidden Line plans already did. A wireframe hides nothing, so the fill adds no white mask and no floor above covers it.
…e plans A Fine structural plan that shows hidden lines draws a framing member that lies below the cut and under a higher floor face covering its whole top polygon with the Hidden Structural Framing Lines style of the model: that category's pen and color and its line pattern, each edge starting its own dash. The member is neither filled nor masked behind. S101 gray error 1.67 to 1.62; the other compared sheets keep their drawing streams.
…e reference does A named font is sized from the cap height of the regular face of its family and rounded to half a point, so a Courier New Bold Italic title with 2.4 mm caps prints at 12 pt. The reference sets the title 1.9 mm right of the band centre on every band width.
… transparent faces The file keeps the facets of a pile without a mesh marker; their source face names the cylinder half, so the smooth-surface lookup now falls back to it. The silhouettes and rims print on top of the image at the full pen width instead of as opaque line surfaces that a transparent pane dimmed.
…the font metrics The reference places the level names, elevations and Column Locations in a box one inset off the rule: a label under the rule hangs by the ascent of its font and a label above it stands off by the descent, each with half the line gap. Fixed fractions of the cap height left Arial Black names 0.2 mm and elevations 0.5 mm off.
…door swings in engineering plans A PDF plan view with no saved door or window tag printed generated marks the reference does not have. The leaf and swing of a door without a saved symbol in a Hidden Line mechanical or electrical plan now take the faded colour and the projection pen of Doors.
…turned from the view Fine sections print the dashed drafting pattern of a wall material in its own colour with the Walls surface-pattern pen. A vertical face turned away from the view compresses the lattice along the view's horizontal by the cosine of the wall's direction and starts it where the perpendicular from the view origin meets the face plane.
… foundations in detail sections A cropped detail section that shows surface patterns now projects a round structural foundation behind the cut plane as a cylinder and lays its surface pattern around it. A closed foundation cut gets the cut pattern of its material, as slabs, edges and beams already do. Dashes of a coloured surface pattern on round shafts keep the saved colour.
…s off the cut plane in detail sections A solid with rounded edges had a curved face, and the closed-cut check rejected every curved face. Patches wholly in front of or behind the plane contribute no chord, so the cut stays closed and prints its pattern.
…t faces The fills paint far to near by the mean depth of each face's corners. An inclined flange face whose outline carries many vertices at one end read nearer than the front flange outside it, and its white back painted over the filled front of tilted steel columns. A planar face turned away from the view now takes the depth of the farthest face of its own element, unless its material is transparent.
…system layout width Revit sets a right-aligned line by the width of the system layout of the font and draws the glyphs with their own advances, so the line ends short of the saved anchor by the difference. The first baseline follows the system ascent. Both now apply to regular Arial notes of section and 3D views.
…llow A wire end whose dynamic-update flag is saved as set follows its device and stops at the device symbol. The larger planar component of the end's saved offset vector is the half extent of that symbol; the wire is cut where the saved curve leaves the square of that half size around the end, and the arc is redrawn between the two cut points around the same middle vertex with the weight recomputed from the new chord. Ends without the flag, and offsets shorter than a quarter of a foot, keep the saved point.
A view lists its filters (the filter, whether it shows what it selects, whether it is switched on) and each filter stores its categories and a tree of rules. A filter that is switched on and does not show what it selects now leaves its elements out of the view, as the reference does. Only text rules (begins with, contains, ends with, equals, their inverse, and/or) are read, compared without regard to case. A rule of another kind, a parameter the element does not carry and a parameter of the element's type decide nothing, so the element stays. The graphic overrides of a filter are not applied.
A Hidden Line engineering section at Coarse detail now takes the saved single line of each duct, duct fitting, flex duct and pipe, as the shaded electrical sections already did, and inks it with the projection pen of its category. A run that the cutting plane passes through keeps its line: its axis lies in front of the plane, within the depth of its saved body.
The scale field of the title block follows the drawn non-3D viewports of the sheet, so a sheet of plans at one scale and 3D views at others names that scale instead of "As indicated". A sheet that holds only schedules leaves the field empty instead of printing the 1 : 1 stored for them.
…ing the end segment length A cropped plan that stores no per-view datum extents, or does not crop its annotations, places the grid ends at a fixed paper margin from the crop, so the end segment length of the grid type is not needed there. The check that dropped the view to the fallback drawing when that length was not a plausible paper length now applies only where the length sets the margin.
…only an engineering one A fine section that crops the model but not its annotations and stores no per-view datum extent draws its grids to the model crop plus the paper margin, as the mechanical and electrical sections already did. Any other discipline lost its grid lines and bubbles above the section.
… a 3D one The scale line of a viewport title was left out for any view whose name contained a solar, lighting, energy or sun path word, so a plan named after such a study lost its scale line, and a 3D view without such a word kept one. The reference prints the scale under every drawn view but a 3D one, whatever the name.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Interim checkpoint
40fd624bFour commits since
d65a2b79improve cast shadows from opaque curtain door frames on A103 and the shading at crossed planting panels on A104. The final two commits document the Revit controls, including the concrete foundation hatch and the remaining model-shading difference on the left wall of A105 Main Stair Detail.All six architectural sheets were printed at the last rendering change (
d429924a) and compared with the supplied Revit PDF. Values are recall / precision (%).rvt_prtatb12e943rvt_prtat checkpointb12e943The 144 dpi comparison for the planting change found zero changed pixels in A104 West, including the ground and hatching. Grayscale MAE against Revit decreased from 6.66431 to 6.65936 in Building Section and from 3.81400 to 3.80894 in A103 Longitudinal Section. Vector precision is still below
b12e943on A101 and A103–A105.Local Release tests passed on .NET 8 (15,052 passed) and .NET 10 (15,056 passed), with 541 skips and zero failures on each target.
Interim checkpoint
e2a75a82Five commits since
fbc2e675improve A101 site-plan outlines, equipment shadows, skylight glazing and shadows, and column rules in the planting schedules.All six architectural sheets were reprinted and scored against the same Revit PDF. The values below are recall / precision (%).
rvt_prtatb12e943rvt_prtate2a75a82b12e943e2a75a82After timestamp masking, the schedule fix changed 48 pixels within the A101 spacer at 96 dpi and left the other five sheets pixel-identical to the preceding print at
f0aaac8d. At 144 dpi, A104 West, its ground and hatching, Building Section, and A103 Longitudinal Section were also pixel-identical. Vector precision on A101 and A103–A105 remains belowb12e943.Local Release tests for this checkpoint passed on .NET 8 (15,018 passed) and .NET 10 (15,022 passed), with 540 skips and zero failures on each target.
Interim checkpoint
c154e65cFour commits since
8e5cb84arefine the A101 solar labels, apply saved curtain-panel transparency in fine sections, align authored A001 schedule captions and cells, and restore circular help marker borders and caption layout.All six architectural sheets were reprinted against the same Revit PDF. Scores below are recall / precision (%).
rvt_prtatb12e943rvt_prtatc154e65cb12e943c154e65cThe final commit reduced mean absolute vertical error across 41 help captions from 0.442 to 0.028 pt and mean RGB absolute error in marker crops at 288 dpi from 5.08 to 2.94. Mean horizontal error is 0.157 pt. Compared with the preceding print, A103 and A104 West match pixel for pixel after masking timestamps. Changes in A104 Building Section and Typical Wall Section are confined to help markers. A104 vector precision moved from 56.50% to 56.47%.
The local corpus reprint covered 33 sheets across five models. Release tests passed on .NET 8 (14,867 passed) and .NET 10 (14,871 passed), with 539 skips on each target. The new marker rendering test passed on Windows.
Interim checkpoint
db15fc28Four commits restore exposed floor joints on other levels, show the tops of sloping walls in plans, recover soil cut lines at wall steps, and use terrain to shade door finishes in fine sections.
All six architectural sheets were reprinted and compared with the same Revit PDF. The table reports recall / precision (%) for
b12e943anddb15fc28.rvt_prtbaservt_prtcheckpointThe final door-shading change lowered RGB mean absolute error in the door crop from 15.86 to 13.81 and preserved A105 drawing paths. A103 and A104 matched the preceding print pixel for pixel in the timestamp-normalized raster comparison. Across five models (33 sheets), raster differences from that print were confined to the A105 Stair Section.
Local Release tests passed on .NET 8 (14,853 passed) and .NET 10 (14,857 passed), with 539 skips on each target.
Summary
This draft records the verified PDF-printing checkpoint on top of
feat/viewport-crop-scaleatb12e943. It keeps the accumulated changes across the title sheet, site plan, floor plans, elevations, sections and details in one reviewable branch. The section-plane units fix in #300 has its ownmain-based review.Print saved schedules, title-block graphics and annotations. Use saved placement, visibility and style data in model viewports.
Restore supported model surfaces, cut profiles, material patterns, stair and railing geometry, site graphics and shadows.
Include the latest verified elevation and section visibility and shading fixes in
0eb5fbc. These cover RPC foliage at the view plane on A103, foreground furniture occlusion on A104, and glazing, stair surfaces and retaining-wall shading on A105.Print the continuous drafting grid from the saved paint region on the A104 Building Section wall. The parent face retains its solid geometry and openings.
Use the saved uniform Arial body style to align the evaluated schedule rows and column headers on A001.
Project the terrain material's saved drafting hatch and cut colour onto the vertical section-box faces of Solar Analysis on A101.
Restore the daily paths, saved hour limits and geometric sunrise and sunset labels in A101 Solar Analysis. Shade the exposed solar band and vertical terrain cuts with the saved sun settings. Hide compass marks behind opaque geometry.
Use the saved placed type outline to reject clipped RPC plants and render both sides of the retained planting meshes.
Current checkpoint
81b5eeaaFour commits since
c154e65crestore saved stair cut hatching, draw exposed stair edges at section jogs, keep small appliance faces in Fine overview sections, and remove definition-space geometry from A103 Longitudinal Section and A104 West.Reprinted all six architectural sheets and 27 more sheets from four sample models. The table compares both prints with the same Revit 2022 PDF. All values are percentages. The raster columns use the 100 dpi line-ink score from
tools/parity/score.py.rvt_prtb12e943 recall / precisionrvt_prtcheckpoint recall / precisionCompared with
c154e65c, vector precision went from 49.31% to 49.27% on A103 and from 56.47% to 56.32% on A104. With timestamps masked, raster precision rose from 95.4993% to 95.5010% on A103 and from 95.3992% to 95.3999% on A104. Raster recall rose from 98.4369% to 98.4473% on A103 and fell from 96.8685% to 96.8604% on A104. The final filter kept the A104 West ground and hatch, Building Section, and A105 Main Stair Detail pixel-identical tof710fa4fin the checked crops.The Release CLI built on .NET 10. Full test suites passed on .NET 8 (14,884 passed) and .NET 10 (14,888 passed), with 539 skips per target and zero failures.
git diff --cached --checkpassed.Earlier verification
All six sheets were reprinted with
rvtio print --all-sheets. Bothb12e943and this checkpoint were compared with the same Revit 2022 PDF. Values are percentages.The A104 painted cladding reduced RGB mean absolute error in its crop from 15.77 to 14.72 at 144 dpi and from 14.38 to 13.01 at 288 dpi. The living room crop matched the previous print pixel for pixel at both resolutions. A104 whole-sheet raster F1 changed from 91.02% to 90.94% at 144 dpi. It held at 94.54% at 72 dpi. A104 vector scores and all A103 sheet scores held within the displayed precision.
The earlier A105 retaining-wall change reduced RGB mean absolute error in the target crop from 16.89 to 9.29 at 144 dpi. It preserved vector paths on all six sheets. A001–A104 matched the preceding print pixel for pixel after masking timestamps, including A103 South and A104 West and Building Section.
The A001 schedule crop RGB mean absolute error at 144 dpi fell from 4.32 to 0.80 after restoring the row layout. The A101 soil cut RGB mean absolute error at 144 dpi fell from 36.81 to 31.20 after restoring the hatch. The soil tone still differs from Revit. A103 South, A104 West and A104 Building Section are pixel-identical to the preceding checkpoint at 72 and 144 dpi.
Compared with the preceding PR commit (
f68cb9a1), A101 raster F1 rose from 93.51% to 94.41% at 72 dpi and from 92.76% to 93.36% at 144 dpi. A101 vector scores held at 100.00% recall and 51.92% precision. The other five sheets preserved their reported scores. Timestamp-normalized raster comparisons preserved A103 South, A104 West and A104 Building Section.dotnet build src/RvtIO.Cli/RvtIO.Cli.csproj -c Release -f net10.0dotnet test tests/RvtIO.Tests/RvtIO.Tests.csproj -c Releasepassed on .NET 8 (12,126 passed) and .NET 10 (12,130 passed), with 502 skips on each target. The earlier schedule-style and terrain-pattern real-file tests also passed separately on .NET 10.git diff --cached --checkResidual styling and geometry differences remain. Vector precision is lower than the base on A101, A103, A104 and A105. The Revit reference carries drawing content in raster tiles on those sheets, so the raster comparison measures visible geometry that
rvt_prtcannot match as vectors. The model and comparison PDFs remain in the local validation workspace.